package com.guo.core.framework.JDBCtest;


import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @projectName: 接口梳理
 * @package: com.guo.core.framework.JDBCtest
 * @className: TransportMapper
 * @author: zhangcan30
 * @description: TODO
 * @date: 2023/12/28 17:31
 * @version: 1.0
 */
public class TransportMapper implements RowMapper {
    @Override
    public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
        Transport transport=new Transport();

        String task_no = rs.getString("task_no");
        String remark = rs.getString("remark");
        transport.setTaskNo(task_no);
        transport.setDispatchNo(remark);

        return transport;
    }
}
